﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SCMS.Model;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;


namespace SCMS.UI.Models
{
    public class WRFRequest
    {
        public WarehouseRelease EntityWHouseRelease { get; set; }

        public SelectList Staff { get; set; }
        public SelectList Warehouses { get; set; }
        public List<Model.WarehouseReleaseItem> WRNItemList { get; set; }

        public SelectList ApproversList { get; set; }
    }

    public class WRForm
    {
        public WarehouseReleaseItem EntityWhouseRItem { get; set; }

        public SelectList Items { get; set; }
    }

    public class WRNItems
    {
        public WarehouseReleaseItem EntityWhouseRItem { get; set; }
    }

    public class ViewWRNs
    {
        public WarehouseRelease EntityWHouseRelease { get; set; }

        public string Requestor { get; set; }

        public string Recipient { get; set; }
    }

    public class ViewWRNDetails
    {
        public WarehouseRelease EntityWHouseRelease { get; set; }

        public List<WarehouseReleaseItem> writems { get; set; }

        public Model.VStaffDetail Requestor { get; set; }

        public Model.VStaffDetail Recipient { get; set; }

        public bool CanApprove { get; set; }
    }

    public class CheckAvailableQty
    {
        public Guid InventoryId { get; set; }

        public Int64 releasedQty { get; set; }

        public Guid wrnId { get; set; }

        public Guid? assetid { get; set; }
    }

    public class RejectWRO
    {
        [Required]
        public Guid Id { get; set; }

        public string RefNumber { get; set; }

        [Required(ErrorMessage = "Remarks are required.")]
        public string RejectedAuthRemarks { get; set; }

        [Required(ErrorMessage = "Remarks are required.")]
        public string RejectedReviewRemarks { get; set; }
    }
}